<?php namespace Phpcmf\Controllers\Admin;

class Content extends \Phpcmf\Common
{

    public function index() {

        if (is_file(MYPATH.'Config/License.php')) {
            $license = require MYPATH.'Config/License.php';
            if (!$license['license']) {
                exit('程序不是最新，请在官网下载[安装包]并覆盖src目录');
            }
        } else {
            exit('程序需要更新到正式版，请在官网 http://www.kaiqibao.net/down/ 下载[安装包]并覆盖src目录');
        }

        \Phpcmf\Service::V()->assign([
            'url' => 'https://www.kaiqibao.net/license.php?id='.$license['license'],
        ]);
        \Phpcmf\Service::V()->display('cloud_online.html');exit;

    }

}
